execute at @s if entity @e[distance=..1,limit=1,sort=nearest,type=item,nbt={Item:{id:"minecraft:popped_chorus_fruit",Count:1b,tag:{id:"advm:machines_burn_electricity_producer"}}}] run function advm:machines/burn_electricity_producer
execute at @s if entity @e[distance=..1,limit=1,sort=nearest,type=item,nbt={Item:{id:"minecraft:popped_chorus_fruit",Count:1b,tag:{id:"advm:machines_burn_electricity_producer"}}}] run kill @e[distance=..1,limit=1,sort=nearest,type=item,nbt={Item:{id:"minecraft:popped_chorus_fruit",Count:1b,tag:{id:"advm:machines_burn_electricity_producer"}}}]